import java.math.BigInteger;

/**
 * @author by zyl
 * @date 2020/3/28.
 */
public class ECPoint {
    BigInteger x;
    BigInteger y;

    public ECPoint() {
        x = null;
        y = null;
    }

    public ECPoint(BigInteger x, BigInteger y) {
        this.x = x;
        this.y = y;
    }

    public BigInteger getX() {
        return x;
    }

    public BigInteger getY() {
        return y;
    }

    @Override
    public String toString() {
        if (isO())
            return "O";
        return  x.toString() + "," + y.toString() ;
    }

    boolean isO() {
        if (x == null && y == null)
            return true;
        return false;
    }
}